import Vue from 'vue';
import Router from 'vue-router';
import ElementUI from 'element-ui';
import '../assets/theme/index.css';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';
import { fab } from '@fortawesome/free-brands-svg-icons';
import {
  FontAwesomeIcon,
  FontAwesomeLayers,
  FontAwesomeLayersText
} from '@fortawesome/vue-fontawesome';

import NotFound from '@templates/NotFound';
import Index from '@templates/Index';

import LayoutLogin from '@templates/LayoutLogin';
import Login from '@templates/Login';
import oldLogin from '@templates/oldLogin';
import NewLogin from '@templates/NewLogin';
import Password from '@templates/Password';

import LayoutMain from '@templates/LayoutMain';

const Example = () =>
  import(/* webpackChunkName: "Example" */ '@templates/Example');

const Viewer = () =>
  import(/* webpackChunkName: "Viewer" */ '@templates/Viewer');
const ViewerCompare = () =>
  import(/* webpackChunkName: "ViewerCompare" */ '@templates/Viewer-compare');
// 分享二维码
const share = () =>
  import(/* webpackChunkName: "share" */ '@templates/share/index');
const shareViewer = () =>
  import(/* webpackChunkName: "shareViewer" */ '@templates/share/viewer');

//医生ai评价跳到这个切片浏览器  因为之前的切片浏览器是根据病理编号来请求数据的  现在用z,x就是每张切片之间切换  不会漏评
const copyViewer = () =>
  import(/* webpackChunkName: "copyViewer" */ '@templates/copyViewer');

const Diagnosis = () =>
  import(/* webpackChunkName: "Diagnosis" */ '@templates/Diagnosis/Diagnosis');
const sliceAssess = () =>
  import(/* webpackChunkName: "sliceAssess" */ '@templates/Diagnosis/sliceAssess');

const DiagnosisScan = () =>
  import(/* webpackChunkName: "DiagnosisScan" */ '@templates/Diagnosis/DiagnosisScan');
const DiagnosisDispatch = () =>
  import(/* webpackChunkName: "DiagnosisDispatch" */ '@templates/Diagnosis/DiagnosisDispatch');
const DiagnosisDispatchDetailHead = () =>
  import(/* webpackChunkName: "DiagnosisDispatchDetailHead" */ '@templates/Diagnosis/DiagnosisDispatchDetailHead');
const DiagnosisList = () =>
  import(/* webpackChunkName: "DiagnosisList" */ '@templates/Diagnosis/DiagnosisList');
const DiagnosisPadList = () =>
  import(/* webpackChunkName: "DiagnosisList" */ '@templates/Diagnosis/DiagnosisPadList');
const DiagnosisPadDataList = () =>
  import(/* webpackChunkName: "DiagnosisList" */ '@templates/Diagnosis/DiagnosisPadDataList');
const DiagnosisAiEvaluation = () =>
  import(/* webpackChunkName: "DiagnosisAiEvaluation" */ '@templates/Diagnosis/DiagnosisAiEvaluation');

const DiagnosisReportList = () =>
  import(/* webpackChunkName: "DiagnosisReportList" */ '@templates/Diagnosis/DiagnosisReportList');
const DiagnosisListDetailHead = () =>
  import(/* webpackChunkName: "DiagnosisListDetailHead" */ '@templates/Diagnosis/DiagnosisListDetailHead');
const DiagnosisDetailUnchangedSearch = () =>
  import(/* webpackChunkName: "DiagnosisDetailHeadSearch" */ '@templates/Diagnosis/DiagnosisDetailHeadSearch');
const DiagnosisBiopsyImages = () =>
  import(/* webpackChunkName: "DiagnosisBiopsyImages" */ '@templates/Diagnosis/DiagnosisBiopsyImages');
const DiagnosisBiopsyMark = () =>
  import(/* webpackChunkName: "DiagnosisBiopsyMark" */ '@templates/Diagnosis/DiagnosisBiopsyMark');
const DiagnosisDetailUnchangedCollection = () =>
  import(/* webpackChunkName: "DiagnosisDetailHeadCollection" */ '@templates/Diagnosis/DiagnosisDetailHeadCollection');
const DiagnosisReportView = () =>
  import(/* webpackChunkName: "DiagnosisReportView" */ '@templates/Diagnosis/DiagnosisReportView');

const Institution = () =>
  import(/* webpackChunkName: "Institution" */ '@templates/Institution/Institution');
const Todo = () =>
  import(/* webpackChunkName: "Todo" */ '@templates/Institution/Todo');

const InstitutionDictionaries = () =>
  import(/* webpackChunkName: "InstitutionDictionaries" */ '@templates/Institution/InstitutionDictionaries');
const InstitutionDictionariesInfo = () =>
  import(/* webpackChunkName: "InstitutionDictionariesInfo" */ '@templates/Institution/InstitutionDictionariesInfo');
const InstitutionNotices = () =>
  import(/* webpackChunkName: "InstitutionNotices" */ '@templates/Institution/InstitutionNotices');
const InstitutionNoticesEdit = () =>
  import(/* webpackChunkName: "InstitutionNoticesEdit" */ '@templates/Institution/InstitutionNoticesEdit');
const InstitutionNoticesPreview = () =>
  import(/* webpackChunkName: "InstitutionNoticesPreview" */ '@templates/Institution/InstitutionNoticesPreview');
const InstitutionPermissions = () =>
  import(/* webpackChunkName: "InstitutionPermissions" */ '@templates/Institution/InstitutionPermissions');
// 机构信息业务模块

const InstitutionInfo = () =>
  import(/* webpackChunkName: "InstitutionInfo" */ '@templates/Institution/InstitutionInfo');
const InstitutionInfoEdit = () =>
  import(/* webpackChunkName: "InstitutionInfoEdit" */ '@templates/Institution/InstitutionInfoEdit');
// 统计分析;
const statisticalAnalysis = () =>
  import(/* webpackChunkName: "statisticalAnalysis" */ '@templates/statisticalAnalysis/statisticalAnalysis');
const qualityReport = () =>
  import(/* webpackChunkName: "qualityReport" */ '@templates/statisticalAnalysis/qualityReport');
const overview = () =>
  import(/* webpackChunkName: "overview" */ '@templates/statisticalAnalysis/overview');
const diagnosisResultStatistics = () =>
  import(/* webpackChunkName: "diagnosisResultStatistics" */ '@templates/statisticalAnalysis/diagnosisResultStatistics');
// 医联上传;
const medicalGroup = () =>
  import(/* webpackChunkName: "medicalGroup" */ '@templates/medicalGroup/medicalGroup');
const shenKangIndex = () =>
  import(/* webpackChunkName: "shenKangIndex" */ '@templates/medicalGroup/shenKangIndex');
const PatientInformation = () =>
  import(/* webpackChunkName: "PatientInformation" */ '@templates/medicalGroup/PatientInformation');
const CheckInformation = () =>
  import(/* webpackChunkName: "CheckInformation" */ '@templates/medicalGroup/CheckInformation');
const CheckDocument = () =>
  import(/* webpackChunkName: "CheckDocument" */ '@templates/medicalGroup/CheckDocument');
const positiveCheck = () =>
  import(/* webpackChunkName: "PositiveCheck" */ '@templates/medicalGroup/PositiveCheck');
const reverseCheck = () =>
  import(/* webpackChunkName: "ReverseCheck" */ '@templates/medicalGroup/ReverseCheck');

// 科研管理;
const scienceManage = () =>
  import(/* webpackChunkName: "scienceManage" */ '@templates/scienceManage/scienceManage');
const scienceLibraries = () =>
  import(/* webpackChunkName: "scienceLibraries" */ '@templates/scienceManage/scienceLibraries');
const createScienceLibraries = () =>
  import(/* webpackChunkName: "createScienceLibraries" */ '@templates/scienceManage/createScienceLibraries');
const addSlicesToLibraries = () =>
  import(/* webpackChunkName: "addSlicesToLibraries" */ '@templates/scienceManage/addSlicesToLibraries');
const slicesOfKeYanLibraries = () =>
  import(/* webpackChunkName: "slicesOfKeYanLibraries" */ '@templates/scienceManage/slicesOfKeYanLibraries');

// 教学管理;
const teachingManage = () =>
  import(/* webpackChunkName: "teachingManage" */ '@templates/teachingManage/teachingManage');
const teachingLibraries = () =>
  import(/* webpackChunkName: "teachingLibraries" */ '@templates/teachingManage/teachingLibraries');
const createTeachingLibraries = () =>
  import(/* webpackChunkName: "createTeachingLibraries" */ '@templates/teachingManage/createTeachingLibraries');
const slicesOfTeachingLibraries = () =>
  import(/* webpackChunkName: "slicesOfTeachingLibraries" */ '@templates/teachingManage/slicesOfTeachingLibraries');
const addSlicesToJXLibraries = () =>
  import(/* webpackChunkName: "addSlicesToJXLibraries" */ '@templates/teachingManage/addSlicesToJXLibraries');
const pathologyTeaching = () =>
  import(/* webpackChunkName: "pathologyTeaching" */ '@templates/teachingManage/pathologyTeaching');
const pathologyLiterature = () =>
  import(/* webpackChunkName: "pathologyLiterature" */ '@templates/teachingManage/pathologyLiterature');
const caseLibrary = () =>
  import(/* webpackChunkName: "caseLibrary" */ '@templates/teachingManage/caseLibrary');

// 机构数据业务模块
const InstitutionDoctorAdvices = () =>
  import(/* webpackChunkName: "InstitutionDoctorAdvices" */ '@templates/Institution/InstitutionDoctorAdvices');
const InstitutionReportTemplates = () =>
  import(/* webpackChunkName: "InstitutionReportTemplates" */ '@templates/Institution/InstitutionReportTemplates');
const InstitutionReportTemplatesEdit = () =>
  import(/* webpackChunkName: "InstitutionReportTemplatesEdit" */ '@templates/Institution/InstitutionReportTemplatesEdit');
const InstitutionReportTemplatesPreview = () =>
  import(/* webpackChunkName: "InstitutionReportTemplatesPreview" */ '@templates/Institution/InstitutionReportTemplatesPreview');
const InstitutionDiagnosisTemplates = () =>
  import(/* webpackChunkName: "InstitutionDiagnosisTemplates" */ '@templates/Institution/InstitutionDiagnosisTemplates');
const InstitutionOrgans = () =>
  import(/* webpackChunkName: "InstitutionOrgans" */ '@templates/Institution/InstitutionOrgans');
const InstitutionSubGroups = () =>
  import(/* webpackChunkName: "InstitutionSubGroups" */ '@templates/Institution/InstitutionSubGroups');
//综合查询
const queryGroup = () =>
  import(/* webpackChunkName: "MyGroup" */ '@templates/queryGroup/queryGroup');
const IntegratedQuery = () =>
  import(/* webpackChunkName: "IntegratedQuery" */ '@templates/queryGroup/IntegratedQuery');
const pathologicalMarkManage = () =>
  import(/* webpackChunkName: "pathologicalMarkManage" */ '@templates/queryGroup/pathologicalMarkManage');
//远程会诊
const remoteConsultation = () =>
  import(/* webpackChunkName: "remoteConsultation" */ '@templates/remoteConsultation/remoteConsultation');
const consultationask = () =>
  import(/* webpackChunkName: "consultationask" */ '@templates/remoteConsultation/consultationask');
const consultationAccepts = () =>
  import(/* webpackChunkName: "consultationAccepts" */ '@templates/remoteConsultation/consultationAccepts');
//切片管理
const sliceManage = () =>
  import(/* webpackChunkName: "sliceManage" */ '@templates/sliceManage/sliceManage');
const sliceTidy = () =>
  import(/* webpackChunkName: "sliceTidy" */ '@templates/sliceManage/sliceTidy');
const sliceOverview = () =>
  import(/* webpackChunkName: "sliceOverview" */ '@templates/sliceManage/sliceOverview');
const sliceRetrieval = () =>
  import(/* webpackChunkName: "sliceRetrieval" */ '@templates/sliceManage/sliceRetrieval');
const sliceBorrow = () =>
  import(/* webpackChunkName: "sliceBorrow" */ '@templates/sliceManage/sliceBorrow');

const MyGroup = () =>
  import(/* webpackChunkName: "MyGroup" */ '@templates/MyGroup/MyGroup');

const MyGroupCollections = () =>
  import(/* webpackChunkName: "MyGroupCollections" */ '@templates/MyGroup/MyGroupCollections');
const MyGroupScheduling = () =>
  import(/* webpackChunkName: "MyGroupScheduling" */ '@templates/MyGroup/MyGroupScheduling');
const MyGroupDiagnosisTemplates = () =>
  import(/* webpackChunkName: "MyGroupDiagnosisTemplates" */ '@templates/MyGroup/MyGroupDiagnosisTemplates');
const SampleGallery = () =>
  import(/* webpackChunkName: "SampleGallery" */ '@templates/SampleGallery');

// 日志管理页面
const logsGroup = () =>
  import(/* webpackChunkName: "logsGroup" */ '@templates/logsGroup/logsGroup');
const loginLog = () =>
  import(/* webpackChunkName: "loginLog" */ '@templates/logsGroup/loginLog');
const examineBiopsyLog = () =>
  import(/* webpackChunkName: "examineBiopsyLog" */ '@templates/logsGroup/examineBiopsyLog');
const cancerHospitalLog = () =>
  import(/* webpackChunkName: "cancerHospitalLog" */ '@templates/logsGroup/cancerHospitalLog');

const operationRecords = () =>
  import(/* webpackChunkName: "operationRecords" */ '@templates/logsGroup/operationRecords');

// 机构用户模块
const InstitutionUserList = () =>
  import(/* webpackChunkName: "InstitutionUserList" */ '@templates/Institution/UserManagement/InstitutionUserList');
const InstitutionUserAdd = () =>
  import(/* webpackChunkName: "InstitutionUserAdd" */ '@templates/Institution/UserManagement/InstitutionUserAdd');
const InstitutionUserInfo = () =>
  import(/* webpackChunkName: "InstitutionUserInfo" */ '@templates/Institution/UserManagement/InstitutionUserInfo');
// 个人信息编辑
const EditPersonalInfo = () =>
  import(/* webpackChunkName: "EditPersonalInfo" */ '@templates/Other/EditPersonalInfo');
const ChangePassword = () =>
  import(/* webpackChunkName: "ChangePassword" */ '@templates/Other/ChangePassword');

// AI模板管理
const ModelManager = () =>
  import(/* webpackChunkName: "ModelManager" */ '@templates/Institution/ModelManager');

const Demo = () =>
  import(/* webpackChunkName: "Demo" */ '@templates/Demo/Demo');
const DemoMark = () =>
  import(/* webpackChunkName: "Demo" */ '@templates/Demo/DemoMark');

library.add(fas, far, fab);
Vue.component('font-awesome-icon', FontAwesomeIcon);
Vue.component('font-awesome-layers', FontAwesomeLayers);
Vue.component('font-awesome-layers-text', FontAwesomeLayersText);
Vue.use(Router);
Vue.use(ElementUI);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'index',
      redirect: '/newLogin',
      component: Index
    },
    {
      path: '/notices/preview/:id',
      name: 'InstitutionNoticesPreview',
      component: InstitutionNoticesPreview
    },
    {
      path: '/viewer',
      name: 'Viewer',
      component: Viewer
    },
    {
      path: '/ViewerCompare',
      name: 'ViewerCompare',
      component: ViewerCompare
    },

    {
      path: '/share/index/:diagnosisUuid',
      name: 'share',
      component: share
    },
    {
      path: '/shareViewer',
      name: 'shareViewer',
      component: shareViewer
    },
    {
      path: '/copy-viewer',
      name: 'copyViewer',
      component: copyViewer
    },
    {
      path: '/report-templates/preview/:id',
      name: 'InstitutionReportTemplatesPreview',
      component: InstitutionReportTemplatesPreview
    },
    {
      path: '/detail/preview/:uid/:pid',
      name: 'DiagnosisReportView',
      component: DiagnosisReportView
    },
    {
      path: '/newLogin',
      name: 'NewLogin',
      component: NewLogin
    },
    {
      path: '/LayoutLogin',
      component: LayoutLogin,
      children: [
        {
          path: '/login',
          name: 'Login',
          component: Login
        },
        {
          path: '/oldLogin',
          name: 'oldLogin',
          component: oldLogin
        },
        {
          path: '/Password',
          name: 'Password',
          component: Password
        }
      ]
    },
    {
      path: '/layout-main',
      component: LayoutMain,
      children: [
        {
          path: '/example',
          name: 'Example',
          component: Example
        },
        {
          path: '/editPersonalInfo',
          name: 'EditPersonalInfo',
          component: EditPersonalInfo
        },
        {
          path: '/ChangePassword',
          name: 'ChangePassword',
          component: ChangePassword
        },
        {
          path: '/demo',
          name: 'Demo',
          component: Demo
        },
        {
          path: '/demo-mark',
          name: 'DemoMark',
          component: DemoMark
        },
        {
          path: '/diagnosis',
          name: 'Diagnosis',
          component: Diagnosis,
          children: [
            {
              path: 'scan',
              name: 'DiagnosisScan',
              component: DiagnosisScan
            },
            {
              path: 'sliceAssess',
              name: 'sliceAssess',
              component: sliceAssess
            },
            {
              path: 'dispatch',
              name: 'DiagnosisDispatch',
              component: DiagnosisDispatch
            },
            {
              path: 'dispatch/detail',
              name: 'DiagnosisDispatchDetailHead',
              component: DiagnosisDispatchDetailHead
            },
            {
              path: 'list',
              name: 'DiagnosisList',
              component: DiagnosisList
            },
            {
              path: 'padList',
              name: 'DiagnosisPadList',
              component: DiagnosisPadList
            },
            {
              path: 'padDataList/:id',
              name: 'DiagnosisPadDataList',
              component: DiagnosisPadDataList
            },
            {
              path: 'aiEvaluation',
              name: 'DiagnosisAiEvaluation',
              component: DiagnosisAiEvaluation
            },
            {
              path: 'reportlist',
              name: 'DiagnosisReportList',
              component: DiagnosisReportList
            },

            {
              path: 'detail',
              name: 'DiagnosisListDetailHead',
              component: DiagnosisListDetailHead
            },
            {
              path: 'detail-unchanged-search',
              name: 'DiagnosisDetailUnchangedSearch',
              component: DiagnosisDetailUnchangedSearch
            },
            {
              path: 'detail-biopsy-images',
              name: 'DiagnosisBiopsyImages',
              component: DiagnosisBiopsyImages
            },
            {
              path: 'detail-biopsy-mark',
              name: 'DiagnosisBiopsyMark',
              component: DiagnosisBiopsyMark
            },
            {
              path: 'detail-unchanged-collection',
              name: 'DiagnosisDetailUnchangedCollection',
              component: DiagnosisDetailUnchangedCollection
            }
          ]
        },
        {
          path: '/institution',
          name: 'Institution',
          component: Institution,
          children: [
            {
              path: 'user',
              name: 'InstitutionUserList',
              component: InstitutionUserList
            },
            {
              path: 'user/add',
              name: 'InstitutionUserAdd',
              component: InstitutionUserAdd
            },
            {
              path: 'user/info',
              name: 'InstitutionUserInfo',
              component: InstitutionUserInfo
            },
            {
              path: 'dictionaries',
              name: 'InstitutionDictionaries',
              component: InstitutionDictionaries
            },
            {
              path: 'dictionaries/info/:code',
              name: 'InstitutionDictionariesInfo',
              component: InstitutionDictionariesInfo
            },
            {
              path: 'notices',
              name: 'InstitutionNotices',
              component: InstitutionNotices
            },
            {
              path: 'notices/edit',
              name: 'InstitutionNoticesEdit',
              component: InstitutionNoticesEdit
            },
            {
              path: 'permissions',
              name: 'InstitutionPermissions',
              component: InstitutionPermissions
            },
            {
              path: 'info',
              name: 'InstitutionInfo',
              component: InstitutionInfo
            },
            {
              path: 'info/edit',
              name: 'InstitutionInfoEdit',
              component: InstitutionInfoEdit
            },
            {
              path: 'advices',
              name: 'InstitutionDoctorAdvices',
              component: InstitutionDoctorAdvices
            },
            {
              path: 'report-templates',
              name: 'InstitutionReportTemplates',
              component: InstitutionReportTemplates
            },
            {
              path: 'report-templates/edit',
              name: 'InstitutionReportTemplatesEdit',
              component: InstitutionReportTemplatesEdit
            },
            {
              path: 'diagnosis-templates',
              name: 'InstitutionDiagnosisTemplates',
              component: InstitutionDiagnosisTemplates
            },
            {
              path: 'organs',
              name: 'InstitutionOrgans',
              component: InstitutionOrgans
            },
            {
              path: 'sub-groups',
              name: 'InstitutionSubGroups',
              component: InstitutionSubGroups
            },
            {
              path: 'Todo',
              name: 'Todo',
              component: Todo
            },
            {
              path: 'model-manager',
              name: 'ModelManager',
              component: ModelManager
            }
          ]
        },
        {
          path: '/logs',
          name: 'logsGroup',
          component: logsGroup,
          children: [
            {
              path: 'operationRecords',
              name: 'operationRecords',
              component: operationRecords
            },
            {
              path: 'loginLog',
              name: 'loginLog',
              component: loginLog
            },
            {
              path: 'examineBiopsyLog',
              name: 'examineBiopsyLog',
              component: examineBiopsyLog
            },
            {
              path: 'cancerHospitalLog',
              name: 'cancerHospitalLog',
              component: cancerHospitalLog
            }
          ]
        },
        {
          path: '/query',
          name: 'queryGroup',
          component: queryGroup,
          children: [
            {
              path: 'IntegratedQuery',
              name: 'IntegratedQuery',
              component: IntegratedQuery
            },
            {
              path: 'pathologicalMark-manage',
              name: 'pathologicalMarkManage',
              component: pathologicalMarkManage
            }
          ]
        },
        {
          path: '/remoteConsultation',
          name: 'remoteConsultation',
          component: remoteConsultation,
          children: [
            {
              path: 'consultationAccepts',
              name: 'consultationAccepts',
              component: consultationAccepts
            },
            {
              path: 'consultationask',
              name: 'consultationask',
              component: consultationask
            }
          ]
        },
        {
          path: '/sliceManage',
          name: 'sliceManage',
          component: sliceManage,
          children: [
            {
              path: 'sliceTidy',
              name: 'sliceTidy',
              component: sliceTidy
            },
            {
              path: 'sliceOverview',
              name: 'sliceOverview',
              component: sliceOverview
            },
            {
              path: 'sliceRetrieval',
              name: 'sliceRetrieval',
              component: sliceRetrieval
            },
            {
              path: 'sliceBorrow',
              name: 'sliceBorrow',
              component: sliceBorrow
            }
          ]
        },
        {
          path: '/statisticalAnalysis',
          name: 'statisticalAnalysis',
          component: statisticalAnalysis,
          children: [
            {
              path: 'overview',
              name: 'overview',
              component: overview
            },
            {
              path: 'qualityReport',
              name: 'qualityReport',
              component: qualityReport
            },
            {
              path: 'diagnosisResultStatistics',
              name: 'diagnosisResultStatistics',
              component: diagnosisResultStatistics
            }
          ]
        },
        {
          path: '/medicalGroup',
          name: 'medicalGroup',
          component: medicalGroup,
          children: [
            {
              path: 'shenKang-index',
              name: 'shenKangIndex',
              component: shenKangIndex
            },
            {
              path: 'patient-information',
              name: 'patientInformation',
              component: PatientInformation
            },
            {
              path: 'Check-information',
              name: 'checkInformation',
              component: CheckInformation
            },
            {
              path: 'check-document',
              name: 'checkDocument',
              component: CheckDocument
            },
            {
              path: 'positive-check',
              name: 'positiveCheck',
              component: positiveCheck
            },
            {
              path: 'reverse-check',
              name: 'reverseCheck',
              component: reverseCheck
            }
          ]
        },
        {
          path: '/scienceManage',
          name: 'scienceManage',
          component: scienceManage,
          children: [
            {
              path: 'scienceLibraries',
              name: 'scienceLibraries',
              component: scienceLibraries
            },
            {
              path: 'createScienceLibraries',
              name: 'createScienceLibraries',
              component: createScienceLibraries
            },
            {
              path: 'slicesOfKeYanLibraries',
              name: 'slicesOfKeYanLibraries',
              component: slicesOfKeYanLibraries
            },
            {
              path: 'addSlicesToLibraries',
              name: 'addSlicesToLibraries',
              component: addSlicesToLibraries
            }
          ]
        },
        {
          path: '/teachingManage',
          name: 'teachingManage',
          component: teachingManage,
          children: [
            {
              path: 'teachingLibraries',
              name: 'teachingLibraries',
              component: teachingLibraries
            },
            {
              path: 'createTeachingLibraries',
              name: 'createTeachingLibraries',
              component: createTeachingLibraries
            },
            {
              path: 'slicesOfTeachingLibraries',
              name: 'slicesOfTeachingLibraries',
              component: slicesOfTeachingLibraries
            },
            {
              path: 'addSlicesToJXLibraries',
              name: 'addSlicesToJXLibraries',
              component: addSlicesToJXLibraries
            },

            {
              path: 'pathologyLiterature',
              name: 'pathologyLiterature',
              component: pathologyLiterature
            },
            {
              path: 'pathologyTeaching',
              name: 'pathologyTeaching',
              component: pathologyTeaching
            },
            {
              path: 'caseLibrary',
              name: 'caseLibrary',
              component: caseLibrary
            }
          ]
        },
        {
          path: '/my',
          name: 'MyGroup',
          component: MyGroup,
          children: [
            {
              path: 'collections',
              name: 'MyGroupCollections',
              component: MyGroupCollections
            },
            {
              path: 'scheduling',
              name: 'MyGroupScheduling',
              component: MyGroupScheduling
            },
            {
              path: 'diagnosis-templates',
              name: 'MyGroupDiagnosisTemplates',
              component: MyGroupDiagnosisTemplates
            }
          ]
        },

        {
          path: '/samplesGallery',
          component: SampleGallery
        }
      ]
    },
    {
      path: '*',
      component: NotFound
    }
  ]
});
